"""tenpro URL Configuration

The `urlpatterns` list routes URLs to views.py. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views.py
    1. Add an import:  from my_app import views.py
    2. Add a URL to urlpatterns:  path('', views.py.home, name='home')
Class-based views.py
    1. Add an import:  from other_app.views.py import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""

from django.urls import path

from apps.ten_auth.views import *

urlpatterns = [
    path('sms_codes/<mobile>/', SendSMS.as_view()),
    path('users/', Register.as_view()),
    path('authorizations/', Authorize.as_view()),
    path('auth2/', Authorize.as_view()),
    path('channels/', ChannelView.as_view()),
    path('article/', ArticlelView.as_view()),
    path('article/<id>/', ArticlelView.as_view()),
    path('article/<id>/channel/', ChannelAllView.as_view()),
    path('article/<id>/collect/', ChannelAllView.as_view()),
    path('article/<id>/publish_comment/', CommentView.as_view()),
    path('articles/search/', SearchView.as_view())

]
